package com.jh.user.business;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.query.Param;

import com.jh.user.pojo.UserAccount;
import com.jh.user.pojo.UserRebateHistory;

public interface UserRebateHistoryBusiness {


	public UserRebateHistory  saveUserRebateHistory(UserRebateHistory  userRebateHistory);


	public Page<UserRebateHistory> queryUserRebateHistoryByUserid(long userid,
																  Pageable pageAble);

	public UserAccount updateUserRebate(UserAccount userAccount, BigDecimal rebate , String order_type, String addorsub, String ordercode);

	public BigDecimal findsumRebateHistoryByUseridAnd( long userid,String[]  orderType, Date startTime,  Date endTime);


	public List<Object[]> findSumRebateHistoryByUserIdBetweenWeek(long userId, String[] orderType, String startTime,String endTime);


}
